<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.sql.*,java.util.*,java.text.SimpleDateFormat,java.lang.Math" %>
<% // session.setAttribute("loginId","jiaotj"); //用于本地测试
      String loginId = (String) (session.getAttribute("loginId") == null ? "" : session.getAttribute("loginId"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <link href="css/department_style.css" rel="stylesheet" type="text/css" />
        <SCRIPT src="js/jquery-1.7.1.min.js"></SCRIPT>
    </head>
    <body>
        <div class="department_main">
            <div><%java.util.Date date = new java.util.Date();%>
                <iframe id="frame_content" name="frame_content" style="width:1000px" src="#" scrolling="no" frameborder="0" height="800"></iframe>

                <script type="text/javascript">
                    setTimeout(function(){
                        location.href="http://www.cnsn.gov.cn/app/paid/validate.jsp?loginId=<%=loginId%>&t="+(new Date()).getTime();
                    },100);
                </script>
            </div>
        </div>
    </body>
</html>



<script type="text/javascript">
    function reinitIframe(){
        var iframe = document.getElementById("frame_content");
        try{
            var bHeight = iframe.contentWindow.document.body.scrollHeight;
            var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
            var height = Math.max(bHeight, dHeight);
            iframe.height =  height;
        }catch (ex){}
    }
    window.setInterval("reinitIframe()", 200);
    document.getElementById('frame_content').src=document.getElementById('frame_content').src+"&time="+Math.random();
</script>